#include <fstream>

long long gcd(long long a, long long b, long long &x, long long &y) 
{
   if (a == 0) 
   {
      x = 0;
      y = 1;
      return b;
   }
   long long x1, y1;
   long long d = gcd(b % a, a, x1, y1);
   x = y1 - (b / a) * x1;
   y = x1;
   return d;
}

int main()
{
   std::ifstream input("in.txt");
   std::ofstream output("out.txt");
   long long a, b, c;
   while (input >> a >> b >> c)
   {   
      long long x, y;
      long long d = gcd(a, b, x, y);

      if (((a != 0) || (b != 0)) && (c % d == 0))
      {
         long long k = c / d;
         output << x * k << " " << y * k << "\n";
         continue;
      }
      if ((a == 0) && (b == 0) && (c == 0))
      {
         output << "0 0\n";
         continue;
      }
      output << "<none>\n";   
   }
   return 0;
}